class Program
{
    static void Main(string[] args)
    {
        string commandName = args[0];
        if (commandName == "GenerateDomainLayer")
        {
            string solutionPath = args[1];
            string source = args[2];
            string target = args[3];
            string outputFilePath = args[4];
 
            //On vide le fichier de sortie
            File.WriteAllText(outputFilePath, String.Empty);
            //On genere chaque fichier de notre couche domaine
            var filesToAdd = DomainGenerator.GenerateDomainLayer(solutionPath, source, target);
            //On crit le chemin de chaque fichier dans notre fichier de sortie
            File.WriteAllLines(outputFilePath, filesToAdd);
        }
    }
}
